package com.sgb.kjwl.model.entity.transport;

import android.text.TextUtils;

import com.sgb.kjwl.utils.NumberUtil;

import javax.inject.Inject;

/**
 * @Author : 熊丽
 * @date :2021/4/6 0006$ 14:32$
 * @Description :司机询价和报名货主实体$
 */
public class InquiryEntity {


    /**
     * messagePrice : 200
     * no : 1365554910929752064
     * freight : 100
     * userNo : 1333226114721648640
     * destProvinceNo :
     * allFreight : null
     * destDistrictName : 武侯
     * payType :
     * cityName : 成都
     * districtNo :
     * carrierNo : 1364864735731912704
     * provinceNo :
     * shipmentEndTime : 1615305599000
     * id : 1489
     * isDump : null
     * cityNo :
     * goodsModelName : 类型3
     * orderNo :
     * destCityName : 成都
     * districtName : 武侯
     * addField :
     * weight : 22
     * destProvinceName :
     * terminal : null
     * agree : null
     * offerTime : 1614408636928
     * offerStatus : 4
     * diyField : null
     * destCityNo :
     * createTime : null
     * detailAddress :
     * invoice :
     * provinceName :
     * endTime : 1614667836586
     * shipmentTime : 1615046400000
     * destDistrictNo :
     */

    private String messagePrice;
    private String no;
    private String freight;
    private String userNo;
    private String destProvinceNo;
    private String allFreight;
    private String destDistrictName;
    private String payType;
    private String cityName;
    private String districtNo;
    private String carrierNo;
    private String provinceNo;
    private String shipmentEndTime;
    private int id;
    private Object isDump;
    private String cityNo;
    private String goodsModelName;
    private String orderNo;
    private String destCityName;
    private String districtName;
    private String addField;
    private String weight;
    private String destProvinceName;
    private Integer terminal;
    private int agree;
    private String offerTime;
    private int offerStatus;
    private String destCityNo;
    private String createTime;
    private String detailAddress;
    private String invoice;
    private String provinceName;
    private String endTime;
    private String shipmentTime;
    private String destDistrictNo;
    private String volume;
    private String goodsTypeName;
    private String carTypeName;
    private String carLenName;
    private String heightHurdle;
    private String isDumper;
    private String name;
    private String telphone;
    private String carNo;
    private String goodsSourceNo;
    private String carOfferNo;
    /**1：元/趟，2：元/吨，3：元/方*/
    private String freightUnit;
    private String companyName;
    private String secondGoodsTypeName;//2.1.4 新增 二级货物类型
    /**
     * 装车开始时间点  2.0.6
     * 25——表示全天
     */
    private int startPointTime;

    /**
     * 装车结束时间点  2.0.6
     * 25——表示全天
     */
    private int endPointTime;

    public String getVolume() {
        return volume == null ? "" : NumberUtil.trim0(volume);
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getDestProvinceNo() {
        return destProvinceNo;
    }

    public void setDestProvinceNo(String destProvinceNo) {
        this.destProvinceNo = destProvinceNo;
    }

    public String getAllFreight() {
        return allFreight;
    }

    public void setAllFreight(String allFreight) {
        this.allFreight = allFreight;
    }

    public String getDestDistrictName() {
        return destDistrictName;
    }

    public void setDestDistrictName(String destDistrictName) {
        this.destDistrictName = destDistrictName;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDistrictNo() {
        return districtNo;
    }

    public void setDistrictNo(String districtNo) {
        this.districtNo = districtNo;
    }

    public String getCarrierNo() {
        return carrierNo;
    }

    public void setCarrierNo(String carrierNo) {
        this.carrierNo = carrierNo;
    }

    public String getProvinceNo() {
        return provinceNo;
    }

    public void setProvinceNo(String provinceNo) {
        this.provinceNo = provinceNo;
    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Object getIsDump() {
        return isDump;
    }

    public void setIsDump(Object isDump) {
        this.isDump = isDump;
    }

    public String getCityNo() {
        return cityNo;
    }

    public void setCityNo(String cityNo) {
        this.cityNo = cityNo;
    }

    public String getGoodsModelName() {
        return goodsModelName;
    }

    public void setGoodsModelName(String goodsModelName) {
        this.goodsModelName = goodsModelName;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getDestCityName() {
        return destCityName;
    }

    public void setDestCityName(String destCityName) {
        this.destCityName = destCityName;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getAddField() {
        return addField;
    }

    public void setAddField(String addField) {
        this.addField = addField;
    }
    public String getDestProvinceName() {
        return destProvinceName;
    }

    public void setDestProvinceName(String destProvinceName) {
        this.destProvinceName = destProvinceName;
    }

    public int getOfferStatus() {
        return offerStatus;
    }

    public Integer getTerminal() {
        return terminal;
    }

    public int getAgree() {
        return agree;
    }

    public void setOfferStatus(int offerStatus) {
        this.offerStatus = offerStatus;
    }

    public String getDestCityNo() {
        return destCityNo;
    }

    public void setDestCityNo(String destCityNo) {
        this.destCityNo = destCityNo;
    }

    public Object getCreateTime() {
        return createTime;
    }
    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getInvoice() {
        return invoice;
    }

    public void setInvoice(String invoice) {
        this.invoice = invoice;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getDestDistrictNo() {
        return destDistrictNo;
    }

    public void setDestDistrictNo(String destDistrictNo) {
        this.destDistrictNo = destDistrictNo;
    }


    public String getMessagePrice() {
        return messagePrice;
    }

    public void setMessagePrice(String messagePrice) {
        this.messagePrice = messagePrice;
    }

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    public String getShipmentEndTime() {
        return shipmentEndTime;
    }

    public void setShipmentEndTime(String shipmentEndTime) {
        this.shipmentEndTime = shipmentEndTime;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public void setTerminal(Integer terminal) {
        this.terminal = terminal;
    }

    public void setAgree(int agree) {
        this.agree = agree;
    }

    public String getOfferTime() {
        return offerTime;
    }

    public void setOfferTime(String offerTime) {
        this.offerTime = offerTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getShipmentTime() {
        return shipmentTime;
    }

    public void setShipmentTime(String shipmentTime) {
        this.shipmentTime = shipmentTime;
    }

    public String getGoodsTypeName() {
        return goodsTypeName;
    }

    public void setGoodsTypeName(String goodsTypeName) {
        this.goodsTypeName = goodsTypeName;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCarLenName() {
        return carLenName;
    }

    public void setCarLenName(String carLenName) {
        this.carLenName = carLenName;
    }

    public String getHeightHurdle() {
        return heightHurdle;
    }

    public void setHeightHurdle(String heightHurdle) {
        this.heightHurdle = heightHurdle;
    }

    public String getIsDumper() {
        if (TextUtils.isEmpty(isDumper)){
            return "";
        }
        if ("1".equals(isDumper)){
            return "自卸";
        }else {
            return "非自卸";
        }
    }

    public void setIsDumper(String isDumper) {
        this.isDumper = isDumper;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public String getGoodsSourceNo() {
        return goodsSourceNo;
    }

    public void setGoodsSourceNo(String goodsSourceNo) {
        this.goodsSourceNo = goodsSourceNo;
    }

    public String getCarOfferNo() {
        return carOfferNo;
    }

    public void setCarOfferNo(String carOfferNo) {
        this.carOfferNo = carOfferNo;
    }

    public void setFreightUnit(String freightUnit) {
        this.freightUnit = freightUnit;
    }
    public String getFreightUnit() {
        if (TextUtils.isEmpty(freightUnit))
            return "";
        //1：元/趟，2：元/吨，3：元/方
        if (freightUnit.equals("1"))
            return "元/趟";
        if (freightUnit.equals("2"))
            return "元/吨";
        if (freightUnit.equals("3"))
            return "元/方";
        return "";
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getSecondGoodsTypeName() {
        return secondGoodsTypeName;
    }

    public void setSecondGoodsTypeName(String secondGoodsTypeName) {
        this.secondGoodsTypeName = secondGoodsTypeName;
    }

    public int getStartPointTime() {
        return startPointTime;
    }

    public void setStartPointTime(int startPointTime) {
        this.startPointTime = startPointTime;
    }

    public int getEndPointTime() {
        return endPointTime;
    }

    public void setEndPointTime(int endPointTime) {
        this.endPointTime = endPointTime;
    }
}
